10-Deploying chart
Pre-conditions
If you’ve followed the steps in the previous sections, you should have a copy of the code and be able to render the chart in playground and in TS if you are using cluster it self. If not, please revisit the previous lessons to get set up.
If you are using ngrok then you need to deploy it to vercel or any hosting service to make it available and have a permanent hosting
To Deploy on vercel you can perfrom following steps-
- Push your Vite app to a Git repository (e.g., GitHub, GitLab, or Bitbucket).
- Go to the Vercel Dashboard.
- Click New Project and import your repository.
- Vercel will detect your Vite app and automatically configure the build settings:
-
- Framework Preset: Vite
-
- Build Command: npm run build
-
- Output Directory: dist
- Click Deploy. Vercel will build and deploy your app, providing you with a live URL once the deployment is complete.